#include "WinState.h"
#include "PlayState.h"
#include "Texture.h"
#include "PlayState.h"
#include "ResMgr.h"
#include "StateMgr.h"
#include "GameCommonInfo.h"

WinState::WinState()
{
	
}

void WinState::Init()
{
	ResMgr::GetInstance()->LoadWin();
}
void WinState::Render()
{
	ResMgr::GetInstance()->GetTexture(TID_WIN_BACK)->Render(0, 0);
}

void WinState::TouchDown(int x, int y)
{
	GameCommonInfo::GetInstance()->NextLevel();
	StateMgr::GetInstance()->SwitchState(PlayState::GetInstance());
}

WinState::~WinState()
{
	ResMgr::GetInstance()->UnloadWin();
}